<template>
	<view class="notice-box" v-if="load">
		<view class="item-notice-box">
			<view class="notice-title">
				{{info.title}}
			</view>
			<view class="content-box" v-html="info.content">
				
			</view>
		</view>
	</view>
</template>

<script>
	export default{
			data(){
				return {
					load : false,
					info :{},
				}
			},
			onLoad(e) {
				this.id = e.id;
				this.getData();
			},
			methods:{
				getData(){
					uni.showLoading({
						title:'加载中'
					})
					this.ajax('index/getNoticeDetail',{
						data:{
							id: this.id,
						},
						success:(res) => {
							uni.hideLoading();
							this.info = res.msg;
							this.load = true;
							
						}
					});
				}
			}
		}
	</script>
	

<style>
	@import url("@/static/css/index/notice.css");
</style>